
//Khung cua so
#define WD_HEIGHT 660
#define WD_WIDTH 500

//Khung game 
#define GM_TOP 60
#define GM_LEFT 5
#define GM_RIGHT (WD_WIDTH-10)
#define GM_BOTTOM (WD_HEIGHT-100)



//hinh anh
#define _CHICKEN IDB_BITMAP2
#define _DUCK IDB_BITMAP6
#define _MASK IDB_BITMAP3
#define _BASKET IDB_BITMAP4
#define _EGG_SHIT IDB_BITMAP5
#define _EGG_T1 IDB_BITMAP1

//Aimal
#define T_DUCK 1
#define T_MASK 2
#define ANIMAL_HEIGHT 50
#define ANIMAL_WIDTH 50
#define ANIMAL_Y (GM_TOP + 5)
#define ANIMAL_X 100
#define ANIMAL_LIFETIME 3600000

//Gio hung trung
#define BASKET_HEIGHT 70
#define BASKET_WIDTH 100
#define BASKET_X (GM_RIGHT - GM_LEFT - BASKET_WIDTH)/2
#define BASKET_Y (GM_BOTTOM - BASKET_HEIGHT -10)


//Trung / shit
#define EGG_HEIGHT 35
#define EGG_WIDTH 25
#define EGG_Y 65 //toa do y cua trung luc khoi tao
#define EGG_DC_X (ANIMAL_WIDTH - EGG_WIDTH)/2

//diem so cac m_iType trung
#define EGG_SCORE_T1 1
#define EGG_SCORE_T2 5
#define EGG_SCORE_T3 20

//m_iType trung
#define EGG_T1 1 // trung 1 diem
#define EGG_SHIT 2 // chat thai - tru mang choi


//Thong so game
#define EGG_NEW 5000			//5 giay
#define ANIMAL_MAX 10			// so luong thu toi da
#define ANIMAL_OFFSET_MOVE 1	 //moi lan di chuyen duoc 1px
#define EGG_OFFSET_MOVE 1		 //di chuyen xuong 2px/1ms
#define TIME_UPDATE 10			//20ms cap nhat game 1 lan
#define EGG_MAX 30				// so trung toi da cua game
#define LIFE_BEGIN 3				// so mang ban dau
#define GM_TEXT_Y 20				// cao do cua text
#define GM_TEXT_SIZE 150			//kich thuoc cua font
#define GM_EGG_LEVEL 20				// so trung hung duoc thi tang cap do choi
#define BASKET_OFFSET_MOVE 15		//Gio di chuyen

//trung roi trung ro / san
#define EGG_BASKET 1
#define EGG_BOTTOM 2
#define BASKET_EGG (BASKET_Y + BASKET_HEIGHT/2)

//Thoi gian de trung
const unsigned long EGG_NEW_LV1 = EGG_NEW;
const unsigned long EGG_NEW_LV2 = (EGG_NEW*4)/5;
const unsigned long EGG_NEW_LV3 = (EGG_NEW*3)/5;
const unsigned long EGG_NEW_LV4 = (EGG_NEW)*2/5;
const unsigned long EGG_NEW_LV5 = (EGG_NEW)/5;

//toc do roi cua trung
const int EGG_OFFSET_MOVE_LV1 = EGG_OFFSET_MOVE;
const int EGG_OFFSET_MOVE_LV2 = EGG_OFFSET_MOVE_LV1 + 1;
const int EGG_OFFSET_MOVE_LV3 = EGG_OFFSET_MOVE_LV2 + 1;
const int EGG_OFFSET_MOVE_LV4 = EGG_OFFSET_MOVE_LV3 + 1;
const int EGG_OFFSET_MOVE_LV5 = EGG_OFFSET_MOVE_LV4 + 1;
const int EGG_OFFSET_MOVE_LVMAX = EGG_OFFSET_MOVE_LV5 + 2;

